package com.jhgk.jhcee.auth.model;

import java.util.ArrayList;
import java.util.List;

public class ExpertStaffExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ExpertStaffExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIsNull() {
            addCriterion("province_uuid is null");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIsNotNull() {
            addCriterion("province_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidEqualTo(String value) {
            addCriterion("province_uuid =", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotEqualTo(String value) {
            addCriterion("province_uuid <>", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidGreaterThan(String value) {
            addCriterion("province_uuid >", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidGreaterThanOrEqualTo(String value) {
            addCriterion("province_uuid >=", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLessThan(String value) {
            addCriterion("province_uuid <", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLessThanOrEqualTo(String value) {
            addCriterion("province_uuid <=", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLike(String value) {
            addCriterion("province_uuid like", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotLike(String value) {
            addCriterion("province_uuid not like", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIn(List<String> values) {
            addCriterion("province_uuid in", values, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotIn(List<String> values) {
            addCriterion("province_uuid not in", values, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidBetween(String value1, String value2) {
            addCriterion("province_uuid between", value1, value2, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotBetween(String value1, String value2) {
            addCriterion("province_uuid not between", value1, value2, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIsNull() {
            addCriterion("province_name is null");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIsNotNull() {
            addCriterion("province_name is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceNameEqualTo(String value) {
            addCriterion("province_name =", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotEqualTo(String value) {
            addCriterion("province_name <>", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameGreaterThan(String value) {
            addCriterion("province_name >", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameGreaterThanOrEqualTo(String value) {
            addCriterion("province_name >=", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLessThan(String value) {
            addCriterion("province_name <", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLessThanOrEqualTo(String value) {
            addCriterion("province_name <=", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLike(String value) {
            addCriterion("province_name like", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotLike(String value) {
            addCriterion("province_name not like", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIn(List<String> values) {
            addCriterion("province_name in", values, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotIn(List<String> values) {
            addCriterion("province_name not in", values, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameBetween(String value1, String value2) {
            addCriterion("province_name between", value1, value2, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotBetween(String value1, String value2) {
            addCriterion("province_name not between", value1, value2, "provinceName");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteIsNull() {
            addCriterion("enrollment_site is null");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteIsNotNull() {
            addCriterion("enrollment_site is not null");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteEqualTo(Integer value) {
            addCriterion("enrollment_site =", value, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteNotEqualTo(Integer value) {
            addCriterion("enrollment_site <>", value, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteGreaterThan(Integer value) {
            addCriterion("enrollment_site >", value, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteGreaterThanOrEqualTo(Integer value) {
            addCriterion("enrollment_site >=", value, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteLessThan(Integer value) {
            addCriterion("enrollment_site <", value, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteLessThanOrEqualTo(Integer value) {
            addCriterion("enrollment_site <=", value, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteIn(List<Integer> values) {
            addCriterion("enrollment_site in", values, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteNotIn(List<Integer> values) {
            addCriterion("enrollment_site not in", values, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteBetween(Integer value1, Integer value2) {
            addCriterion("enrollment_site between", value1, value2, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andEnrollmentSiteNotBetween(Integer value1, Integer value2) {
            addCriterion("enrollment_site not between", value1, value2, "enrollmentSite");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdIsNull() {
            addCriterion("staff_user_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdIsNotNull() {
            addCriterion("staff_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdEqualTo(Integer value) {
            addCriterion("staff_user_id =", value, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdNotEqualTo(Integer value) {
            addCriterion("staff_user_id <>", value, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdGreaterThan(Integer value) {
            addCriterion("staff_user_id >", value, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_user_id >=", value, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdLessThan(Integer value) {
            addCriterion("staff_user_id <", value, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_user_id <=", value, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdIn(List<Integer> values) {
            addCriterion("staff_user_id in", values, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdNotIn(List<Integer> values) {
            addCriterion("staff_user_id not in", values, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_user_id between", value1, value2, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andStaffUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_user_id not between", value1, value2, "staffUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdIsNull() {
            addCriterion("expert_user_id is null");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdIsNotNull() {
            addCriterion("expert_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdEqualTo(Integer value) {
            addCriterion("expert_user_id =", value, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdNotEqualTo(Integer value) {
            addCriterion("expert_user_id <>", value, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdGreaterThan(Integer value) {
            addCriterion("expert_user_id >", value, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("expert_user_id >=", value, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdLessThan(Integer value) {
            addCriterion("expert_user_id <", value, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("expert_user_id <=", value, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdIn(List<Integer> values) {
            addCriterion("expert_user_id in", values, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdNotIn(List<Integer> values) {
            addCriterion("expert_user_id not in", values, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdBetween(Integer value1, Integer value2) {
            addCriterion("expert_user_id between", value1, value2, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andExpertUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("expert_user_id not between", value1, value2, "expertUserId");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Integer value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Integer value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Integer value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Integer value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Integer value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Integer> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Integer> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Integer value1, Integer value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Integer value1, Integer value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}